package io.renren.modules.money.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.renren.modules.money.model.SearchRecord;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author A夜兔A
 * @data 2021年11月19日 9:41
 */
@Mapper
public interface MoneyMapper {


    void changeMoney(String tableName, Integer customerId, BigDecimal changeMoney);

    void addRecord(String tableNameRecord, Integer customerId, BigDecimal changeMoney, Date date,String remark);

    Page<SearchRecord> getRecord(Page<SearchRecord> page, String tableNameRecord, String tableNameCustomer, Date beginDate, Date endDate, Long userId, Integer customerId);

}
